import request from '@/utils/request'

// 查询砂石骨料生产记录列表
export function listBonesandstoneproduction(query) {
  return request({
    url: '/app/bonesandstoneproduction/list',
    method: 'get',
    params: query
  })
}

// 查询砂石骨料生产记录详细
export function getBonesandstoneproduction(id) {
  return request({
    url: '/app/bonesandstoneproduction/' + id,
    method: 'get'
  })
}

// 新增砂石骨料生产记录
export function addBonesandstoneproduction(data) {
  return request({
    url: '/app/bonesandstoneproduction',
    method: 'post',
    data: data
  })
}

// 修改砂石骨料生产记录
export function updateBonesandstoneproduction(data) {
  return request({
    url: '/app/bonesandstoneproduction',
    method: 'put',
    data: data
  })
}

// 删除砂石骨料生产记录
export function delBonesandstoneproduction(id) {
  return request({
    url: '/app/bonesandstoneproduction/' + id,
    method: 'delete'
  })
}

// 砂石骨料类型
export function getAggregateList(params) {
  return request({
    url: '/app/aggregate/list',
    method: 'get',
    params
  })
}
// 砂石骨料新增
export function aggregateAdd(data) {
  return request({
    url: '/app/aggregate',
    method: 'post',
    data
  })
}
// 砂石骨料类型
export function aggregateDel(data) {
  return request({
    url: `/app/aggregate/${data.id}`,
    method: 'delete',
    data
  })
}